package com.lingtianyu.tech.erbaoshen.core.consumer.openfeign;

public class ErBaoShenOpenFeignContext {
    private static final ThreadLocal<String> ERBAOSHEN_OPEN_FEIGN_CONTEXT = new ThreadLocal<>();
    public static void setServerName(String serverName) {
        ERBAOSHEN_OPEN_FEIGN_CONTEXT.set(serverName);
    }

    public static String getServerName() {
        return ERBAOSHEN_OPEN_FEIGN_CONTEXT.get();
    }

    public static void clear() {
        ERBAOSHEN_OPEN_FEIGN_CONTEXT.remove();
    }
}